const { Schema } =require("mongoose")
let mongoose =require("./db")

const subjectSchema = new mongoose.Schema({
    title: String,
    image: String,
    num: Number,
    price: Number,
    discounts:Number,
    cid: {
        type: mongoose.Types.ObjectId,
        ref: "con"
    }
})

const subjectModel = mongoose.model("subject", subjectSchema, 'subject');




module.exports={
  
    subjectModel
}